package com.bee.auth.context;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 程序启动入口
 * @author  Damin.yang
 * @date  2019/8/2 16:12
 */
@RefreshScope
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.bee"})
@ComponentScan(basePackages = {"com.bee.commons", "com.bee.auth"})
@MapperScan("com.bee.auth.mapper")
public class AuthServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(AuthServiceApplication.class, args);
    }
}
